#!/bin/bash
set -euo pipefail
BaseDir=$(cd "$(dirname "$0")"; pwd)
cd ${BaseDir}

# https://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exe
conda --version
conda env list
conda activate base

# conda install pyserial=3.5

# pip镜像库 
#  pip install 库名 -i https://pypi.doubanio.com/simple/ --trusted-host pypi.doubanio.com
# 
pip config list
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/
pip config list

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/  
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --show channels
#conda config --set default_channel https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
